package org.particlethink.response;

import io.swagger.v3.oas.annotations.media.Schema;
import org.particlethink.model.Project;

import java.util.Date;
import java.util.Optional;

public class ProjectResponse {
    @Schema(description = "项目id")
    private int id;
    private Date createdAt;
    private Date updatedAt;
    @Schema(description = "项目名")
    private String name;
    @Schema(description = "项目地址")
    private String address;//地址
    @Schema(description = "管理层级")
    private String managementLevel; //管理层级

    @Schema(description = "省")
    private String province;
    @Schema(description = "城市")
    private String city;


    public ProjectResponse(Project project) {
        this.id = project.getId();
        this.createdAt = project.getCreatedAt();
        this.updatedAt = project.getUpdatedAt();
        this.name = project.getName();
        this.address = project.getAddress();
        this.managementLevel = project.getManagementLevel();
        this.province = project.getProvince();
        this.city = project.getCity();
    }

    public ProjectResponse() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getManagementLevel() {
        return managementLevel;
    }

    public void setManagementLevel(String managementLevel) {
        this.managementLevel = managementLevel;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }
}
